package ink.xiaobaibai.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author xiaobaibai
 * @since 2021-06-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("fault_terminal")
@NoArgsConstructor
public class FaultTerminal implements Serializable {

    private static final long serialVersionUID = 1L;

    public FaultTerminal(String deviceCode, String message, Integer adminUserId, Integer depId) {
        this.deviceCode = deviceCode;
        this.message = message;
        this.adminUserId = adminUserId;
        this.depId = depId;
    }

    /**
     * 终端故障表
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 机器码
     */
    @TableField("device_code")
    private String deviceCode;

    /**
     * 故障信息
     */
    @TableField("message")
    private String message;

    /**
     * 状态(未处理/已处理)
     */
    @TableField("status")
    private String status;

    /**
     * 负责人id
     */
    @TableField("admin_user_id")
    private Integer adminUserId;

    /**
     * 负责人部门
     */
    @TableField("dep_id")
    private Integer depId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;


}
